﻿<phone:PhoneApplicationPage xmlns:m="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"  
    x:Class="sodexo.PageMap"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="clr-namespace:sodexo"
    xmlns:mcore="clr-namespace:Microsoft.Phone.Controls.Maps.Core;assembly=Microsoft.Phone.Controls.Maps"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:my="clr-namespace:System.Device.Location;assembly=System.Device"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded">

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid.Background>
            <ImageBrush ImageSource="/Images/background.jpg"/>
        </Grid.Background>
        <!--TitlePanel 包含应用程序的名称和页标题-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="索迪斯联盟商户信息" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="地图位置" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" FontSize="64" />
        </StackPanel>

        <!--ContentPanel - 在此处放置其他内容-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <m:Map Name="myMap"  CredentialsProvider="Ai93tjeUJEYTiIVyiuBSOOL1Fug5S6Y7eaQs2MGT9rLWwoQeXNm0LfWZKsSMc4y8 " ZoomLevel="1" CopyrightVisibility="Collapsed" ZoomBarVisibility="Visible"  Grid.RowSpan="2" LogoVisibility="Collapsed" ScaleVisibility="Collapsed" IsHitTestVisible="True">
                
                <m:Map.Center>
                    <my:GeoCoordinate Altitude="NaN" Course="NaN" HorizontalAccuracy="NaN" Speed="NaN" VerticalAccuracy="NaN" Latitude="0" Longitude="0" />
                </m:Map.Center>
                <m:Map.Mode>
                    <mcore:MercatorMode></mcore:MercatorMode>
                </m:Map.Mode>
                <m:Map.Children>
                    <m:MapTileLayer >
                        <m:MapTileLayer.TileSources>
                            <local:BingTileSource/>
                        </m:MapTileLayer.TileSources>
                        
                    </m:MapTileLayer >
                    <m:Pushpin Width="68" Height="61" Content="原点" Location="0, 0" Name="PushpinMark"></m:Pushpin>
                </m:Map.Children>
                
            </m:Map>
        </Grid>
    </Grid>
 
    <!--演示 ApplicationBar 用法的示例代码-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="按钮 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="按钮 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="菜单项 1"/>
                <shell:ApplicationBarMenuItem Text="菜单项 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>
